<template>
	<div>
		<!-- <el-button type="primary" @click="marge">合并对象</el-button> -->
		<input type="text" v-model="val" />
		<input type="text" :value="content" @input="content = $event.target.value" />
	</div>
</template>

<script>
	export default {
		data() {
			return {
				val: '',
				content: '',
				a: { a: 1 },
				b: { b: 2 }
			}
		},
		methods: {
			c(e) {
				console.log(e.target.value)
			},
			marge() {
				//   let aa = { ...this.a, ...this.b };
				let bb = Object.assign(this.a, this.b)
				console.log(bb)
			}
		}
	}
</script>

<style lang="scss" scoped></style>
